@use '../core/tokens/m2-utils';
@use 'sass:map';

// Tokens that can't be configured through Angular Material's current theming API,
// but may be in a future version of the theming API.
@function get-unthemable-tokens() {
  @return (
    // TODO: will be necessary for M3.
    bottom-sheet-container-shape: 4px,
  );
}

// Tokens that can be configured through Angular Material's color theming API.
@function get-color-tokens($theme) {
  $system: m2-utils.get-system($theme);

  @return (
    bottom-sheet-container-text-color: map.get($system, on-surface),
    bottom-sheet-container-background-color: map.get($system, surface),
  );
}

// Tokens that can be configured through Angular Material's typography theming API.
@function get-typography-tokens($theme) {
  $system: m2-utils.get-system($theme);
  @return (
    bottom-sheet-container-text-font: map.get($system, body-medium-font),
    bottom-sheet-container-text-line-height: map.get($system, body-medium-line-height),
    bottom-sheet-container-text-size: map.get($system, body-medium-size),
    bottom-sheet-container-text-tracking: map.get($system, body-medium-tracking),
    bottom-sheet-container-text-weight: map.get($system, body-medium-weight),
  );
}

// Tokens that can be configured through Angular Material's density theming API.
@function get-density-tokens($theme) {
  @return ();
}
